﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace DotNetGPSTest
{
   public class TileInfo
   {
      public string Filename
      {
         set { m_filename = value; }
         get { return m_filename; }
      }

      public int WidthPixels
      {
         set { m_widthPixels = value; }
         get { return m_widthPixels; }
      }

      public int HeightPixels
      {
         set { m_heightPixels = value; }
         get { return m_heightPixels; }
      }

      // Distance in pixels to top left of requested Position
      public Point Offset
      {
         set { m_offset = value; }
         get { return m_offset; }
      }

      public Point RequestedTileOffset
      {
         set { m_requestedTileOffset = value; }
         get { return m_requestedTileOffset; }
      }

      public GPSPosition RequestedPosition
      {
         set { m_requestedPosition = value; }
         get { return m_requestedPosition; }
      }

      public int Zoom
      {
         set { m_zoom = value; }
         get { return m_zoom; }
      }

      // Full path filename of tile
      private string m_filename;
      // Dimensions of thile in pixels
      private int m_widthPixels;
      private int m_heightPixels;
      // Distance in pixels from requested position to
      // top left of tile.
      private Point m_offset;
      // Original request that resulted in this tile info
      private GPSPosition m_requestedPosition;
      private Point m_requestedTileOffset;
      // Zoom level at time of request
      private int m_zoom;
   }
}
